package com.zb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zb.entity.ZjWorkFinishOrderTemplateFieldVal;
import com.zb.extend.WorkFinishOrderTemplateFieldValExtend;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 工单结单模板保存字段值表 Mapper 接口
 * </p>
 *
 * @author WEN
 * @since 2023-11-30
 */
@Repository
public interface ZjWorkFinishOrderTemplateFieldValMapper extends BaseMapper<ZjWorkFinishOrderTemplateFieldVal> {

    /**
     * 根据工单ID与固定的结单模板ID获取结单自定义字段内容
     * @param workId                             工单ID
     * @param finishTemplateId 结单模板ID
     * @return
     */
    List<WorkFinishOrderTemplateFieldValExtend> getPushFieldByWorkIdAndWorkStatementTemplateId(@Param("workId") Long workId, @Param("finishTemplateId") Long finishTemplateId);

}
